'''
详细文档请参考：https://gitee.com/Johnson_Fan/HuanJuanPython/wikis/Home

GPIO：12、27、25

'''

from machine import Pin
import time

led_gpio = [12, 27, 25]
led_list = []
led_cnts = len(led_gpio)

#程序入口 
if __name__=="__main__":
    for i in range(led_cnts):
        led_list.append(Pin(led_gpio[i], Pin.OUT))
    #led_list = [Pin(12, Pin.OUT), Pin(27, Pin.OUT), Pin(25, Pin.OUT)]
    
    for i in range(led_cnts):
        led_list[i].value(0)
    #led_list[0].value(0) Pin(12, Pin.OUT).value(0)
    #led_list[1].value(0) Pin(27, Pin.OUT).value(0)
    #led_list[2].value(0) Pin(25, Pin.OUT).value(0)
            
    while True:
        for i in range(led_cnts):
            led_list[i].value(1)                
            time.sleep(0.1)

            led_list[i].value(0)            
            time.sleep(0.1)
